function vs:system/hub/menu/init/generic
execute positioned ~ ~-0.35 ~ run function vs:system/hub/menu/interaction_box/summon

data merge entity @s {item:{id:"ender_eye"}}

data modify entity @s item.components."minecraft:custom_data".hubMenu.tips set value {"text":"调整游戏规则","color":"green"}
data modify entity @s item.components."minecraft:custom_data".hubMenu.click_command set value "execute as @n[tag=hub.mainMenu,type=marker,distance=..50] at @s run function vs:system/hub/menu/init/gamerule_settings"

tag @s add hub.mainMenu.gamerule_settings